14 minutos atrás, ZombiTR disse:
Created a Item ID : 2 from here and me teleported the coordinates and give me a Unique Ball in Pidgey. @Tungs Not working.![]()
local BOXES = {
[3000] = {level = 5, pokemons = {"Pidgey"}}
}
function onUse(cid, item, fromPosition, itemEx, toPosition)
local randomBoxPokemon = BOXES[item.itemid].pokemons[math.random(1, #BOXES[item.itemid].pokemons)]
doSendMagicEffect(getCreaturePosition(cid), EFFECT_FIREWORK_YELLOW)
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, string.format(__L(cid, "Congratulations! Your %s result in %s."), getItemNameById(item.itemid), getMonsterInfo(randomBoxPokemon).description))
doCreatePokemonBall(cid, "poke", randomBoxPokemon, BOXES[item.itemid].level, nil, nil,
math.floor(BOXES[item.itemid].level / 2), cid, true)
doTeleportThing(cid, {x = 3295, y = 564, z = 7}, false)
return true
end






info
Grupo: Campones
Registrado: 28/08/13
Posts: 23
Reputação: +1
Created a Item ID : 2 from here and me teleported the coordinates and give me a Unique Ball in Pidgey. @Tungs Not working.